package ${package }.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import ${package }.dao.${dao};
import ${package }.dao.${service};
import ${package }.domain.${domain };
import ${package }.domain.Page;
import ${package }.domain.WebPageSearchCondition;

@Service
public class ${serviceImpl} implements ${service} {

	@Autowired
	private ${dao} ${mappingVal }Dao;

	@Override
	public Long add(${domain} domain) {
		return ${mappingVal }Dao.add(domain);
	}

	@Override
	public boolean update(${domain} domain) {
		return ${mappingVal }Dao.update(domain);
	}

	@Override
	public ${domain } get(${IDType} id) {
		return ${mappingVal }Dao.get(id);
	}

	@Override
	public Page<${domain }> queryForPage(WebPageSearchCondition<${domain }> searchCondition, Page<${domain }> page) {
		return ${mappingVal }Dao.queryForPage(searchCondition, page);
	}

	@Override
	public boolean delete(${IDType} id) {
		return ${mappingVal }Dao.delete(id);
	}

	@Override
	public List<${domain }> listAll() {
		// TODO Auto-generated method stub
		return null;
	}

}